<template>
  <div>
    <mt-swipe :auto="4000">
      <!-- lunbotuList是自定义属性 :src="item.img" 把拿到的item.src改为item.img -->
      <mt-swipe-item v-for="(item,index) in lunbotuList" :key="index">
        <img :src="item.img" :class="{full:isfull}">
      </mt-swipe-item>
    </mt-swipe>
  </div>
</template>
<script>
export default {
  props: ["lunbotuList", "isfull"]
};
</script>
<style lang="scss" scoped>
.mint-swipe {
  text-align: center;
  height: 200px;
  .mint-swipe-item {
    img {
      //   width: 100%;
      height: 100%;
    }
  }
}
.full {
  width: 100%;
}
</style>
